package com.css.zfzx.sjcj.modules.drill.base.baseAttachment.repository;


import com.css.bpm.platform.components.attach.repository.entity.SysAttachmentEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface BaseAttachmentRepository extends JpaRepository<SysAttachmentEntity,String> {
    @Query(nativeQuery = true,value = "select attach_path from sys_attachment_info where is_valid='1' and" +
            " is_completed='1' and attach_id =:attachId")
    String findByAttachId(String attachId);
}
